cmake_minimum_required(VERSION 3.0.2)
project(video_fuse_car)

set(CMAKE_CXX_STANDARD 11)

find_package(catkin REQUIRED COMPONENTS
  custom_msg
  commons
  cv_bridge
  image_transport
  message_filters
  roscpp
  std_msgs
)

set(glog_DIR '/home/robotnx/temp/glog/build')
# opencv
find_package(OpenCV 4 REQUIRED)
include_directories(
  include
  ${OpenCV_INCLUDE_DIRS}
)
MESSAGE(${OpenCV_INCLUDE_DIRS})

# glog
find_package(glog REQUIRED)
# debug
if (CMAKE_BUILD_TYPE STREQUAL Debug)
    add_definitions(-D_DEBUG)
endif()

# ros
catkin_package()
include_directories(
  ${catkin_INCLUDE_DIRS}
)



add_executable(camera_before_car src/camera_before_car.cc)
target_link_libraries(camera_before_car ${catkin_LIBRARIES} ${OpenCV_LIBS} glog::glog)
#add_executable(before_test_car src/before_test_car.cc)
#target_link_libraries(before_test_car ${catkin_LIBRARIES} ${OpenCV_LIBS} glog::glog)

add_executable(camera_after_car src/camera_after_car.cc)
target_link_libraries(camera_after_car ${catkin_LIBRARIES} ${OpenCV_LIBS} glog::glog)

#add_executable(camera_uvc src/camera_uvc.cpp src/V4l2Capturer.c)
#target_link_libraries(camera_after_car ${catkin_LIBRARIES} ${OpenCV_LIBS} glog::glog)
#add_executable(after_test_car src/after_test_car.cc)
#target_link_libraries(after_test_car ${catkin_LIBRARIES} ${OpenCV_LIBS} glog::glog)

add_executable(ai_video_send_car src/ai_video_send_car.cc)
target_link_libraries(ai_video_send_car ${catkin_LIBRARIES} ${OpenCV_LIBS} glog::glog)

add_executable(video_fuse_car src/video_fuse_car.cc)
target_link_libraries(video_fuse_car ${catkin_LIBRARIES} ${OpenCV_LIBS} glog::glog)

